{include file="$usertemplate/header.temp.html"}
{include file="$usertemplate/left.temp.html" title=left}
{assign var=formId value='listEntry'}
{assign var=rightPanel value='hidden'}
<div id="contextual" class="{$rightPanel}">
<div class="levBtn">
<p><a href="#"><img src="templates/{$usertemplate}/images/btn_arrow_02.gif" alt="" width="18" height="19" /></a></p>
</div>

</div>
<div id="content">
<div class="highlight">
<h2><a href="">{$amessages.control_panel}</a> &raquo; {$amessages.list_entry}</h2>
<ul id="tablist">
<li><a href="{$script}?op=manage&amp;part=entry&amp;act=add&amp;cId={$cId}" title="{$amessages.add_entry}">{$amessages.add_entry}</a> </li>
<li class="current"><a href="{$script}?op=manage&part=entry&act=list" title="{$amessages.list_entry}">{$amessages.list_entry}</a> </li>
<li><a href="{$script}?op=manage&part=entry&act=list&plus=cleanTrash" title="{$amessages.clean_trash}">{$amessages.clean_trash}</a> </li>
</ul>
<div class="searchType">
<form action="{$script}" method="post" name="searchMenu" id="searchMenu">
<fieldset>
<h3>{$amessages.search_for}</h3>
<p>
<label>{$amessages.keyword}</label>
<input type="text" value="{$searchTerms}" name="searchTerms" />
<label>{$amessages.status}</label>
<select name="searchStatus">
{$listStatus}
</select>
<!--<label>{$amessages.category}</label>
<select name="searchCategory">
<option value="-1">All</option>
{$listCategories}
</select>-->
<!--<label>{$amessages.language}</label>
<select name="searchLang">
{$listLang}
</select>-->
<input type="hidden" name="op" value="{$op}" />
<input type="hidden" name="part" value="{$part}" />
<input type="hidden" name="act" value="{$act}" />
<input type="submit" value="{$amessages.display}" title="{$amessages.display}" name="btnDisplay" class="btnDisplay" />
</p>
</fieldset>
</form>
</div>
{if $infoText}
<div class="{$infoClass}">
<h4>Result:</h4>
<p>{$infoText}</p>
</div>
{/if}
<form id="{$formId}" name="{$formId}" action="{$script}" method="post">
<div class="tableContent">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<thead>
<tr>
<th><input class="box3" type="checkbox" name="all" id="all" value="1" onclick="toggleAllChecks('{$formId}');" /></th>
<th>{$amessages.no}</th>
<th>
<a href="{$script}?op=manage&amp;part=entry&amp;act=list&amp;cId={$cId}&amp;searchTerms={$searchTerms}&amp;searchLang={$searchLang}&amp;searchStatus={$searchStatus}&amp;orderBy=id&amp;orderDir={if $orderBy eq 'id' && $orderDir eq 'ASC'}DESC{else}ASC{/if}" title="{$amessages.click_here_to_sort_by} {$amessages.id}">{$amessages.id}{if $orderBy eq 'id'}&nbsp;<img src="templates/{$usertemplate}/images/ico_{if $orderDir eq 'DESC'}down{else}up{/if}.gif" alt="" width="12" height="12" />{/if}</a></th>

<!--<th><a href="{$script}?op=manage&amp;part=entry&amp;act=list&amp;cId={$cId}&amp;searchTerms={$searchTerms}&amp;searchLang={$searchLang}&amp;searchStatus={$searchStatus}&amp;orderBy=lang&amp;orderDir={if $orderBy eq 'lang' && $orderDir eq 'ASC'}DESC{else}ASC{/if}" title="{$amessages.click_here_to_sort_by} {$amessages.language}">{$amessages.language}{if $orderBy eq 'lang'}&nbsp;<img src="templates/{$usertemplate}/images/ico_{if $orderDir eq 'DESC'}down{else}up{/if}.gif" alt="" width="12" height="12" />{/if}</a></th>-->

<th><a href="{$script}?op=manage&amp;part=entry&amp;act=list&amp;cId={$cId}&amp;searchTerms={$searchTerms}&amp;searchLang={$searchLang}&amp;searchStatus={$searchStatus}&amp;orderBy=title&amp;orderDir={if $orderBy eq 'title' && $orderDir eq 'ASC'}DESC{else}ASC{/if}" title="{$amessages.click_here_to_sort_by} {$amessages.title}">{$amessages.title}{if $orderBy eq 'title'}&nbsp;<img src="templates/{$usertemplate}/images/ico_{if $orderDir eq 'DESC'}down{else}up{/if}.gif" alt="" width="12" height="12" />{/if}</a></th>
<th>Avatar</a></th>
<th><a href="{$script}?op=manage&amp;part=entry&amp;act=list&amp;cId={$cId}&amp;searchTerms={$searchTerms}&amp;searchLang={$searchLang}&amp;searchStatus={$searchStatus}&amp;orderBy=status&amp;orderDir={if $orderBy eq 'status' && $orderDir eq 'ASC'}DESC{else}ASC{/if}" title="{$amessages.click_here_to_sort_by} {$amessages.status}">{$amessages.status}{if $orderBy eq 'status'}&nbsp;<img src="templates/{$usertemplate}/images/ico_{if $orderDir eq 'DESC'}down{else}up{/if}.gif" alt="" width="12" height="12" />{/if}</a></th>
<!--<th><a href="{$script}?op=manage&amp;part=entry&amp;act=list&amp;cId={$cId}&amp;searchTerms={$searchTerms}&amp;searchLang={$searchLang}&amp;searchStatus={$searchStatus}&amp;orderBy=position&amp;orderDir={if $orderBy eq 'position' && $orderDir eq 'ASC'}DESC{else}ASC{/if}" title="{$amessages.click_here_to_sort_by} {$amessages.position}">{$amessages.position}{if $orderBy eq 'position'}&nbsp;<img src="templates/{$usertemplate}/images/ico_{if $orderDir eq 'DESC'}down{else}up{/if}.gif" alt="" width="12" height="12" />{/if}</a></th>-->
<th>{$amessages.actions}</th>
</tr>
</thead>
<tbody>
{if $listObjects}
{assign var=i value=$start}
{foreach from=$listObjects item=object}
{assign var=i value=$i+1}
<tr{if $i%2 == 0} class="bgType"{/if}>
<td><input class="box3" type="checkbox" name="oIds[]" id="oIds" value="{$object->getId()}" /></td>
<td>{$i|number_format}</td>
<td>{$object->getId()}</td>
<!--<td>{$categories->getParentName($object->getCId())}</td>-->
<!--<td>{$object->getLang()}</td>-->

<td>{$object->getTitle()|truncate:50}</td>
<td>{if $object->getAvatar()}<img src="{$ROOTPATH}/gallery/avatar_upload/entry/avatar/{$object->getAvatar()}" title="avatar" />{else}<img src="templates/{$usertemplate}/images/no_images.jpeg" alt="{$amessages.down}" width="100" height="100" />{/if}</td>
<td>{if $object->isDeleted()}<span style="color: #FF0000">{$object->getStatusText()}</span>{else}{$object->getStatusText()}{/if}</td>
<!--<td>
<input type="text" name="position_{$object->getId()}" id="position_{$object->getId()}" value="{$object->getPosition()}" />
<input type="button" class="btnOK" name="update" value="OK" onClick="javascript:changePosition('{$formId}','{$object->getId()}');" />
</td>
--><td>
<a href="{$script}?op=manage&amp;part=entry&amp;act=list&amp;cId={$cId}&amp;searchTerms={$searchTerms}&amp;searchLang={$searchLang}&amp;searchStatus={$searchStatus}&amp;orderBy={$orderBy}&amp;orderDir={$orderDir}&amp;plus=down&amp;oId={$object->getId()}&amp;position={$object->getPosition()}&amp;page={$page}" title="{$amessages.down}"><img src="templates/{$usertemplate}/images/ico_down.gif" alt="{$amessages.down}" width="16" height="16" /></a>
<a href="{$script}?op=manage&amp;part=entry&amp;act=list&amp;cId={$cId}&amp;searchTerms={$searchTerms}&amp;searchLang={$searchLang}&amp;searchStatus={$searchStatus}&amp;orderBy={$orderBy}&amp;orderDir={$orderDir}&amp;plus=up&amp;oId={$object->getId()}&amp;position={$object->getPosition()}&amp;page={$page}" title="{$amessages.up}"><img src="templates/{$usertemplate}/images/ico_up.gif" alt="{$amessages.up}" width="16" height="16" /></a>
<a href="{$script}?op=manage&amp;part=entry&amp;act=edit&amp;searchTerms={$searchTerms}&amp;searchLang={$object->getLang()}&amp;searchStatus={$object->getStatus()}&amp;searchCategory={$object->getCId()}&amp;oId={$object->getId()}&amp;page={$page}" title="{$amessages.edit}"><img src="templates/{$usertemplate}/images/misc/edit.png" alt="{$amessages.edit}" width="16" height="16" /></a>
{if $object->isEnabled()}
<a href="{$script}?op=manage&amp;part=entry&amp;act=list&amp;cId={$cId}&amp;searchTerms={$searchTerms}&amp;searchLang={$searchLang}&amp;searchStatus={$searchStatus}&amp;orderBy={$orderBy}&amp;orderDir={$orderDir}&amp;plus=disableItem&amp;oId={$object->getId()}&amp;page={$page}" title="{$amessages.disable}"><img src="templates/{$usertemplate}/images/misc/disable.png" alt="{$amessages.disable}" width="16" height="16" /></a>
{else}
<a href="{$script}?op=manage&amp;part=entry&amp;act=list&amp;cId={$cId}&amp;searchTerms={$searchTerms}&amp;searchLang={$searchLang}&amp;searchStatus={$searchStatus}&amp;orderBy={$orderBy}&amp;orderDir={$orderDir}&amp;plus=activateItem&amp;oId={$object->getId()}&amp;page={$page}" title="{$amessages.activate}"><img src="templates/{$usertemplate}/images/misc/activate.png" alt="{$amessages.activate}" width="16" height="16" /></a>
{/if}
<a href="{$script}?op=manage&amp;part=entry&amp;act=list&amp;cId={$cId}&amp;searchTerms={$searchTerms}&amp;searchLang={$searchLang}&amp;searchStatus={$searchStatus}&amp;orderBy={$orderBy}&amp;orderDir={$orderDir}&amp;plus=deleteItem&amp;oId={$object->getId()}&amp;page={$page}" title="{$amessages.delete}"><img src="templates/{$usertemplate}/images/misc/delete.png" alt="{$amessages.delete}" width="16" height="16" /></a>
<!--{if ($object->getHome())==1}
<a href="{$script}?op=manage&amp;part=entry&amp;act=list&amp;cId={$cId}&amp;searchTerms={$searchTerms}&amp;searchLang={$searchLang}&amp;searchStatus={$searchStatus}&amp;orderBy={$orderBy}&amp;orderDir={$orderDir}&amp;plus=deleteHome&amp;oId={$object->getId()}&amp;page={$page}" title="{$amessages.deletehome}"><img src="templates/{$usertemplate}/images/misc/delete_home.gif" alt="{$amessages.deletehome}" width="16" height="16" /></a>
{else}
<a href="{$script}?op=manage&amp;part=entry&amp;act=list&amp;cId={$cId}&amp;searchTerms={$searchTerms}&amp;searchLang={$searchLang}&amp;searchStatus={$searchStatus}&amp;orderBy={$orderBy}&amp;orderDir={$orderDir}&amp;plus=activateHome&amp;oId={$object->getId()}&amp;page={$page}" title="{$amessages.activehome}"><img src="templates/{$usertemplate}/images/misc/home_ico.gif" alt="{$amessages.activehome}" width="16" height="16" /></a>
{/if}-->
</td>
</tr>
{/foreach}
{/if}
</tbody>
</table>
<div class="paging">
<p class="btnType">
<input type="hidden" name="op" value="{$op}" />
<input type="hidden" name="part" value="{$part}" />
<input type="hidden" name="act" value="{$act}" />
<input type="hidden" name="searchTerms" value="{$searchTerms}"/>
<input type="hidden" name="searchlang" value="{$searchLang}"/>
<input type="hidden" name="searchStatus" value="{$searchStatus}"/>
<input type="hidden" name="searchCategory" value="{$searchCategory}"/>
<input type="hidden" name="orderBy" value="{$orderBy}"/>
<input type="hidden" name="orderDir" value="{$orderDir}"/>
<input type="hidden" name="page" value="{$page}"/>
<input type="hidden" name="cId" value="{$cId}"/>
<input type="hidden" name="oId" value=""/>
<input type="hidden" name="position" value=""/>
<input type="hidden" name="plus" id="plus" value=""/>
<span><input type="submit" value="{$amessages.activate}" title="{$amessages.activate}" name="btnActivate" onClick="javascript:actionSubmit('{$formId}','activateItems');" /></span>
<span><input type="submit" value="{$amessages.disable}" title="{$amessages.disable}" name="btnDisable" onClick="javascript:actionSubmit('{$formId}','disableItems');" /></span>
<span><input type="submit" value="{$amessages.delete}" title="{$amessages.delete}" name="btnDelete" onClick="javascript:actionSubmit('{$formId}','deleteItems');" /></span>
</p>
<ul>
<li>{$amessages.page}</li>
{$adminPager}
<li>{$amessages.total} {$rows|number_format} {$amessages.records}, {$pages|number_format} {$amessages.pages}</li>
</ul>
</div>
</div>
</form>
</div>
</div>
</div>
<div class="push"></div>
</div>
{include file="$usertemplate/footer.temp.html" title=footer}
